<?php 
$username = $_GET['username'];
$password = $_GET['password'];

$deta=array();
$deta['user']=$username;
$deta['password']=$password;
 
 $json_string=json_encode($deta);
 file_put_contents('shuju.json',$json_string);
 echo $json_string;
?>